package finalproject;

public class Unit {

    private String name;
    private int attack, x, y;
    private int HP;
    private int tempMovement;
    private int finalMovement;
    private boolean isSelected;

    Unit() {
        name = "";
        attack = 0;
        HP = 0;
        tempMovement = 0;
        finalMovement = 0;
        isSelected = false;
        x = 0;
        y = 0;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAttack() {
        return attack;
    }

    public void setAttack(int attack) {
        this.attack = attack;
    }

    public int getHP() {
        return HP;
    }

    public void setHP(int HP) {
        this.HP = HP;
    }

    public int getTempMovement() {
        return tempMovement;
    }

    public void setTempMovement(int movement) {
        this.tempMovement = movement;
    }

    public boolean isIsSelected() {
        return isSelected;
    }

    public void setIsSelected(boolean isSelected) {
        this.isSelected = isSelected;
    }

    /**
     * @return the finalMovement
     */
    public int getFinalMovement() {
        return finalMovement;
    }

    /**
     * @param finalMovement the finalMovement to set
     */
    public void setFinalMovement(int finalMovement) {
        this.finalMovement = finalMovement;
    }

    @Override
    public String toString() {
        return "Name: " + name + " Attack: " + attack + " HP: " + HP + " TMoves: " + tempMovement + " FMoves: " + finalMovement + " Selected: " + isSelected;
    }

    /**
     * @return the y
     */
    public int getY() {
        return y;
    }

    /**
     * @param y the y to set
     */
    public void setY(int y) {
        this.y = y;
    }

    /**
     * @return the x
     */
    public int getX() {
        return x;
    }

    /**
     * @param x the x to set
     */
    public void setX(int x) {
        this.x = x;
    }
}